var express = require('express');
var router = express.Router();
const CollectionsController = require("../controllers/CollectionController")

//获取当前学生所有收藏题目
router.get('/', CollectionsController.findAll)
//接收前端发送的收藏试题
router.post('/getStuCollections', CollectionsController.getStuCollections)
//接收前端发送的收藏试题
router.post('/deleteCollection', CollectionsController.deleteByStuAndExerciseId)
module.exports = router